package com.letsgo;

import android.content.Context;
import android.view.View;
import android.widget.Button;

/**
 * @author Julien
 *
 */
public class GameButton extends Button {
	private Game game;

	public GameButton(Context context, String text, Game game, View.OnClickListener onClick) {
		super(context);
		this.setText(text);
		this.game = game;
		this.setOnClickListener(onClick);
	}
	
	/**
	 * Returns the linked game.
	 * @return the game related to the button.
	 */
	public Game getGame() {
		return this.game;
	}
}
